str1 = input("请输入内容：")
str2 = "牛逼"
if str2 in str1:
    out_str = str1.replace(str2,"***")
print(out_str)

list1 = []
list2 = []
while True:
    choice = input("请选择是否进行输入：")
    if choice.lower() == "q":
        break
    else:
        name = input("请输入学生姓名：")
        code = input("请输入学生成绩：")
        list1.append(name)
        list2.append(code)
for x, y in list1, list2:
    print(f"学生{x}的成绩是{y}",end="\t")
